]> dgit.raspbian.org Git - gnome-shell.git/commit
extensions-app: Use new 'enabled' property
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 12 Sep 2023 12:25:03 +0000 (14:25 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 3 Jan 2024 20:05:05 +0000 (20:05 +0000)
commitfec523f83fa6ee0b9059deb0883fd3113899442f
treeae22fba746ae3be82747f2fc6e1cddc2e266cf65
parentf9e81284f8acba86522ad00cc73ae1030269930a
extensions-app: Use new 'enabled' property

The switch for enabling/disabling extensions currently bases its
state on the extension's ACTIVE state.

This is problematic in the enabled-but-inactive case, because
activating the switch tries to change the state from off to on,
which leads to enabling an already enabled extension (an obvious
no-op).

The new `enabled` property allows us to do better, and use delayed
state changes where the switch position represents the `enabled`
state, and the trough color whether the extension is ACTIVE.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7004

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3073>
subprojects/extensions-app/data/ui/extension-row.ui
subprojects/extensions-app/js/extensionManager.js
subprojects/extensions-app/js/extensionRow.js